package com.zhoukun.nacos.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.zhoukun.cloud.CommentRest;

/**
 * @author zhoukun 86547462@qq.com
 * @version 1.0
 * @date 2020/11/2 0:12
 */
public class CustomerBlockHandler {
    public static CommentRest globlHandler1(BlockException e)
    {
        return  new CommentRest().setCode(403).setMessage("用户自定义1===》blockHandler实例："+e.getMessage()).setData("服务请求失败！");
    }
    public static CommentRest globlHandler2(BlockException e)
    {
        return  new CommentRest().setCode(403).setMessage("用户自定义2===》blockHandler实例："+e.getMessage()).setData("服务请求失败！");
    }
}
